import random
import numpy as np

wufu = ["爱国福", "富强福", "和谐福", "友善福", "敬业福"]


def Ji_Fu():
    if input('按下<Enter>键获取五福') == '':
        fu = wufu[random.randint(0, 4)]
        print("获取到：%s" %fu)
        return fu


def fus(collects):
    num = [0, 0, 0, 0, 0]
    for collect in collects:
        if collect == wufu[0]:
            num[0] += 1
        if collect == wufu[1]:
            num[1] += 1
        if collect == wufu[2]:
            num[2] += 1
        if collect == wufu[3]:
            num[3] += 1
        if collect == wufu[4]:
            num[4] += 1
    print("当前拥有的福:\n爱国福：%s  富强福：%s  和谐福：%s  友善福：%s  敬业福：%s" %(num[0], num[1], num[2], num[3], num[4]))
    return num


def wufu_blessing(num):
    if len(num) == 0:
        return True

    a = np.array(num)
    if a.all() > 0:
        print("恭喜您集成五福！！！")
        return False
    else:
        return True




